package demo

func Reverse(types Element)(s []Element) {

	first := 0

	last := len(s) - 1

	for first < last {

	s[first], s[last] = s[last], s[first]

	first++

	last--

	}

}

func ReverseAndPrint(s []int) {

	Reverse(int)(s)

	fmt.Println(s)

}